package com.example.ui.dialogs;

import ag.AGUIBuilder;
import ag.ui.AGBox;
import ag.ui.AGControl;
import ag.ui.AGScrollPanel;
import ag.ui.IAGEventHandler;

public class TestScrollDialog extends BaseDialog {
	private AGScrollPanel _scrollPanel1;
	private AGScrollPanel _scrollPanel2;
	
	public TestScrollDialog(){
		super();
		
		AGBox box1 = AGUIBuilder.getInstance().getBox(2);
		box1.setHeight(2000);
		AGBox box2 = AGUIBuilder.getInstance().getBox(2);
		box2.setHeight(4000);
		
		_scrollPanel1 = AGUIBuilder.getInstance().getScrollPanel(1);
		this._scrollPanel1.setContent(box1);
		this._scrollPanel1.setPosition(78, 42);
		this.addControl(this._scrollPanel1);
		
		_scrollPanel2 = AGUIBuilder.getInstance().getScrollPanel(1);
		this._scrollPanel2.setContent(box2);
		this._scrollPanel2.setPosition(408, 42);
		this.addControl(this._scrollPanel2);
		/*
		this._scrollPanel.addControl(box1);
		this._scrollPanel.addControl(box2);
		this._pagedPanel.addControl(box3);
		*/
	}
	
	class BtnClick implements IAGEventHandler{

		@Override
		public void onHandle(AGControl control) {
			// TODO Auto-generated method stub
			//_textBox.setVisible(!_textBox.getVisible());
		}
	}
}
